// .txt

beginzonescript;

variables;

short im_hostile = 0;
short last_abil;
short counter = 0;
short set_ter1 = 0;

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

	set_name(30001,"Raasa Guard");
	set_name(5214,"Raasa Suharum");
	set_name(5215,"Zhena");
	set_name(30002,"Lithan Brigand");
	set_boss_level(30002,1);
	change_max_health(30002,150);
	set_percent_adjust(30002,2,75);
	set_percent_adjust(30002,10,20);

	if (gf(52,14) == 0) {
		sf(52,3,0);
		}
	set_attack_range(5242,4);
	set_attack_range(5243,4);
	set_attack_range(5244,4);

//	add_ability(short which_char_or_group,short which_slot,short which_ability,0);

//	if (is_town_clear(ME))
//		clean_up_town();

	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
	if ((set_ter1 == 0) && (gf(52,15) > 0)) {
		set_ter1 = 1;
		set_terrain(0,50,21,0);
		}
		
	if (gf(80,12) < 8) {
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5214,"I kept you away.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5214,"You shouldn't have come.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5214,"War approaches.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5214,"Let's get this done.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5215,"The Raasa awaits.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5215,"I will send you on.");
		}
	if (gf(80,12) >= 8) {
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5214,"I've done all I can.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5214,"You should go home.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5214,"The war is here.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5215,"Nice to meet you.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5215,"Where are you going?");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5215,"There are many paths.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5215,"Prova Krug.");
		}

	//if (gf(,) < 2) {
	//	inc_flag(,,1);
	//	if (gf(,) == 2)
	//		begin_talk_mode();
	//	}

	//if (((is_combat()) && (tick_difference(last_abil,get_current_tick()) > 0)) || ((is_town()) && (tick_difference(last_abil,get_current_tick()) > 5))) {
	//	last_abil = get_current_tick();
	//	if ((gf(,) > 0) && (gf(,) < 100))
	//	}
break;

beginstate 10;
	if (gf(52,14) == 0) {
		sf(52,14,1);
		set_attitude(30002,10);
		set_act_at_dist(30002,1);
		}
break;

beginstate 11;
break;

beginstate 12;
break;

beginstate 13;
break;

//	print_str("");
//	set_terrain_string_range(".",1);
//	set_terrain_string_range("The sign says - .",1);
